package com.woniu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import java.util.Date;

/**
 * @author: Canaan
 * @description 还款实体类
 * @date: 2022/9/24 10:36
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class CreRefund extends BaseEntity {

    private static final long serialVersionUID = 1147488586574871525L;

    /**
     * 主键
     */
    @Excel(name = "序号")
    private Integer refundId;


    /**
     * 合同编号
     */
    @Excel(name = "合同编号")
    private Integer contractId;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Integer userId;

    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    private Integer orderId;

    /**
     * 用户手机号
     */
    @Excel(name = "用户手机号")
    private String userPhone;

    /**
     * 用户真实姓名
     */
    @Excel(name = "用户真实姓名")
    private String realName;

    /**
     * 资金方
     */
    @Excel(name = "资金方")
    private String escrow;

    /**
     * 贷款期数
     */
    @Excel(name = "贷款期数")
    private String loanTerm;

    /**
     * 还款方式
     */
    @Excel(name = "还款方式")
    private String paymentMethod;

    /**
     * 贷款产品
     */
    @Excel(name = "贷款产品")
    private String refundProduct;

    /**
     * 月利率
     */
    @Excel(name = "月利率")
    private Double monthRate;

    /**
     * 咨询费率
     */
    @Excel(name = "咨询费率")
    private Double consultingRate;

    /**
     * 保证金费率
     */
    @Excel(name = "保证金费率")
    private Double marginRate;

    /**
     * 应还金额
     */
    @Excel(name = "应还金额")
    private Double shouldTotal;

    /**
     * 贷款总额应还日期
     */
    @Excel(name = "贷款总额应还日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date refundDate;

    /**
     * 实还总额
     */
    @Excel(name = "实还总额")
    private Double actualTotal;

    /**
     * 实还日期
     */
    @Excel(name = "实还日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualDate;

    /**
     * 还款状态
     */
    @Excel(name = "还款状态")
    private Character refundStatus;

    /**
     * 还款次数
     */
    private Integer refundCount;

    /**
     * 月还款金额
     */
    private Double monthlyPayment;

    /**
     * 总利息
     */
    private Double grossInterest;
}
